package com.admin.bean;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 关键词管理
 *
 * @author:HingLo
 * @create 2017-09-11 16:48
 **/
@Entity
@Table(name = "keyword")
public class KeyWord {

    @Id
    private String id;
    private String name;
    private Date ctime;
    private String contents;
    private String type;//类型

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name.trim();
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "KeyWord{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", ctime=" + ctime +
                ", contents='" + contents + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
